package com.landscope.issue.controller.wx;

import com.landscope.issue.controller.base.ResponseResult;
import com.landscope.issue.controller.wx.dto.AppletReportListDto;
import com.landscope.issue.controller.wx.dto.AppletStationListDto;
import com.landscope.issue.controller.wx.dto.AppletStationViewDto;
import com.landscope.issue.controller.wx.param.AppletReportListParam;
import com.landscope.issue.controller.wx.param.AppletStationListParam;
import com.landscope.issue.controller.wx.param.AppletStationViewParam;
import com.landscope.issue.service.applet.ApiAppletReportService;
import com.landscope.issue.service.applet.ApiAppletStationService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

@RequestMapping("api/applet/report")
@RestController
@Api(tags = "8.小程序-报告下载")
@CrossOrigin
public class ApiAppletReportController {

    @Resource
    private ApiAppletReportService apiAppletReportService;

    @ApiImplicitParams({
            @ApiImplicitParam(paramType = "header", name = "token", value = "token", dataType = "String")
    })
    @ApiOperation(value = "8.1 报告列表",notes = "报告列表")
    @PostMapping("/list")
    public ResponseResult<AppletReportListDto> list(@RequestBody AppletReportListParam param){
        return apiAppletReportService.downloadReport(param);
    }
}
